package com.ctrip.ec.biz.entity.sequence;
import com.ctrip.ec.dal.DbColumn;
import com.ctrip.ec.dal.DbTable;
import com.ctrip.ec.dal.EntityBase;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.bouncycastle.util.Times;

import java.sql.Date;
import java.sql.Timestamp;

@DbTable("s_sequence")
public class SequenceEntity extends EntityBase {
    @DbColumn("id")
    private Long id;
    @DbColumn("name")
    private String name;
    @DbColumn("max_id")
    private Long maxId;
    @JsonFormat(pattern="yyyy-MM-dd",locale = "zh" ,timezone="GMT+8")
    @DbColumn("update_date")
    private Date updateDate;
    public  Long getId(){
        return this.id;
    }
    public void setId(Long id){
        this.id = id;
    }
    public  String getName(){
        return this.name;
    }
    public void setName(String name){
        this.name = name;
    }
    public  Long getMaxId(){
        return this.maxId;
    }
    public void setMaxId(Long maxId){
        this.maxId = maxId;
    }
    public  Date getUpdateDate(){
        return this.updateDate;
    }
    public void setUpdateDate(Date updateDate){
        this.updateDate = updateDate;
    }



    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",locale = "zh" ,timezone="GMT+8")
    @DbColumn("now")
    private Timestamp now;

    public Timestamp getNow() {
        return now;
    }

    public void setNow(Timestamp now) {
        this.now = now;
    }
}